{% extends "base.html" %}

{% load i18n %}
{% load static %}
{% block title %}{% trans "Fonts" %}{% endblock %}

{% block set_lang %}<input name="next" type="hidden" value="{% url fontrender.converter.views.converter cur_category.slug %}" />{% endblock %}

{% block content %}
    <strong>{% trans "Fonts" %}:</strong>
    <ul>
        {% for font in fonts.object_list %}
            <li><a href="{{ font.get_absolute_url }}">{{ font.name }}<img src="{% get_static_prefix %}{{ font.font_file.thumb_url }}"/></a></li>
        {% endfor %}
    </ul>
    <div class="pagination">
        <span class="step-links">
            {% if fonts.has_previous %}
                <a href="?page={{ fonts.previous_page_number }}">{% trans "previous" %}</a>
            {% endif %}

            <span class="current">
                {% trans "Page" %} {{ fonts.number }} {% trans "of" %} {{ fonts.paginator.num_pages }}.
            </span>

            {% if fonts.has_next %}
                <a href="?page={{ fonts.next_page_number }}">{% trans "next" %}</a>
            {% endif %}
        </span>
    </div>
{% endblock %}
